#ifndef FRIENDPAGE_H
#define FRIENDPAGE_H

#include <QWidget>
#include "usermode.h"
#include "friendmode.h"
#include <QSpacerItem>
#include <QJsonArray>


namespace Ui {
class FriendPage;
}

class FriendPage : public QWidget
{
    Q_OBJECT

public:
    explicit FriendPage(QWidget *parent = nullptr);
    ~FriendPage();

    const QVector<FriendMode *> &getFrdMode() const;
    void setFrdMode(const QVector<FriendMode *> &newFrdMode);
public slots:
    void recvFriendInfo(QJsonArray jobj);

private:
    Ui::FriendPage *ui;
    QVector<FriendMode*> frdMode;
//    QSpacerItem* verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);


};

#endif // FRIENDPAGE_H
